def f(list):
    n = len(list)
    for i in range(n):
        for j in range(n-i-1):
            if list[j] > list[j+1]:
                list[j],list[j+1] = list[j+1],list[j]
list = []
n = int(input('你想排序几个数字：'))
for i in range(n):
    list.append(int(input()))
f(list)
print(list)